package com.rowenci.iot_agriculture.service.api;

import com.rowenci.iot_agriculture.bean.iot.Com;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ComService {

    boolean addCom(Com com);

    List<Com> findAllExceptReader();

    List<Com> findComBySensor(String sensor);

    boolean delComById(Integer id);

    List<Com> findAll();

    List<Com> findAllByHouse_idExceptReader(Integer house_id);

    boolean delComByHouse_id(Integer house_id);

    Com findComByHouse_idAndSensor(Integer house_id, String sensor);

    Com findComById(Integer id);

}
